package com.ruoyi.lc.md;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.mapper.CommonMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 数据字典信息
 *
 * @author ruoyi
 */
@RestController
@RequestMapping("/lc/md")
public class MdController extends BaseController {

    @Autowired
    private CommonMapper commonMapper;
    /**
     * 根据字典类型查询字典数据信息
     */
    @GetMapping(value = "/data/type/{mdType}")
    public AjaxResult dictType(@PathVariable String mdType)
    {
        return success(commonMapper.selectDatas(mdType));
    }
}
